import request from "@/utils/request.js";
import api from "@/api/index.js";

export const reqUsernameLogin = (loginModel) => {
    return request({
        url: api.reqUsernameLoginURL,
        method: "POST",
        data: loginModel
    })
}

export const reqEmailLogin=(data)=>{
    return request({
        url: api.reqEmailLoginURL,
        method: "POST",
        data
    })
}
export const reqLogout = () => {
    return request({
        url: api.logoutURL,
        method: "POST"
    })
}
